package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._19命令模式._3烤羊肉串;

//服务员类
class Waiter{
    private Command command;

    //设置订单
    public void setOrder(Command command){
        this.command = command;
    }

    //通知执行
    public void notifyCommand(){
        command.excuteCommand();
    }
}
